package com.shenyi.shop.service;

import com.shenyi.shop.api.IFootprintService;
import com.shenyi.shop.dao.FootprintMapper;
import com.shenyi.shop.entity.FootprintDO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @author richard.fan
 * @version 1.0
 * @date 2018/11/05
 * @desc
 * @see
 * @since 1.0
 */
@Service
public class FootprintServiceImpl implements IFootprintService {

    @Autowired
    private FootprintMapper footprintMapper;

    @Override
    public FootprintDO queryObject(Integer id) {
        return footprintMapper.queryObject(id);
    }

    @Override
    public List<FootprintDO> queryList(Map<String, Object> map) {
        return footprintMapper.queryList(map);
    }

    @Override
    public int queryTotal(Map<String, Object> map) {
        return footprintMapper.queryTotal(map);
    }

    @Override
    public void save(FootprintDO footprint) {
        footprintMapper.save(footprint);
    }

    @Override
    public void update(FootprintDO footprint) {
        footprintMapper.update(footprint);
    }

    @Override
    public void delete(Integer id) {
        footprintMapper.delete(id);
    }

    @Override
    public void deleteBatch(Integer[] ids) {
        footprintMapper.deleteBatch(ids);
    }
}
